<div class="wrap">
    <div class="container tag__container">
        <div class="row">
            <div class="col-xs-12 col-md-9 main">
                <section class="tag-info tag__info" style="    background: #f6f6f6;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.24);
    padding: 15px;
    margin-bottom: 20px; margin-top:20px;">
                    <div>
                        <img class="pull-left avatar-square-24 tag__info--thumbnai" src="__ROOT__<?php echo $categoryinfo[0]['clogo'] ?>">
                        <span class="h4 tag__info--title">
                            <?php echo $categoryinfo[0][ 'cname'] ?>
                        </span>
                        <div class="tag__info--follow">
                            <button type="button" class="btn btn-default btn-xs tagfollow" 
                            style="padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px" data-id="1040000000089387">
                                关注
                            </button>
                        </div>
                    </div>
                    <p class="tag__info--desc" >
                        <?php echo $categoryinfo[0][ 'info'] ?>
                            <a href="https://segmentfault.com/t/php/info">
                                [ 百科 ]
                            </a>
                    </p>
                </section>
                <ul class="nav nav-tabs nav-tabs-zen mb20 tag__nav">
                    <li class="active">
                        <a href="https://segmentfault.com/t/php">
                            <i class="fa fa-question-circle">
                            </i>
                            问答
                        </a>
                    </li>
                    <li>
                        <a href="https://segmentfault.com/t/php/blogs">
                            <i class="fa fa-file-text">
                            </i>
                            文章
                        </a>
                    </li>
                    <li>
                        <a href="https://segmentfault.com/t/php/jobs">
                            <i class="fa fa-black-tie">
                            </i>
                            职位
                        </a>
                    </li>
                    <li>
                        <a href="https://segmentfault.com/t/php/info">
                            <i class="fa fa-wikipedia-w">
                            </i>
                            百科
                        </a>
                    </li>
                </ul>
                <div class="tab-content">
                    <div id="qa" class="stream-list question-stream">
                        <div class="text-muted mb10 hidden-xs">
                            排序：
                            <div class="btn-group btn-group-xs">
                                <a class="btn btn-default active" href="https://segmentfault.com/t/php?type=newest"
                                role="button">
                                    时间
                                </a>
                                <a class="btn btn-default" href="https://segmentfault.com/t/php?type=votes"
                                role="button">
                                    投票数
                                </a>
                                <a class="btn btn-default" href="https://segmentfault.com/t/php?type=unanswered"
                                role="button">
                                    未回答
                                </a>
                                <a class="btn btn-default" href="https://segmentfault.com/t/php?type=unsolved"
                                role="button">
                                    未解决
                                </a>
                            </div>
                        </div>
                        <?php foreach ($list as $row) { ?>
                            <section class="stream-list__item">
                                <div class="qa-rank">
                                    <div class="votes hidden-xs">
                                        0
                                        <small>
                                            投票
                                        </small>
                                    </div>
                                    <div class="answers <?php if($row['answer_num']!='0'){echo 'answered';} ?>">
                                        <?php echo $row[ 'answer_num'] ?>
                                            <small>
                                                回答
                                            </small>
                                    </div>
                                    <div class="views hidden-xs">
                                        56
                                        <small>
                                            浏览
                                        </small>
                                    </div>
                                </div>
                                <div class="summary">
                                    <ul class="author list-inline">
                                        <li class="pull-right" title="1 收藏">
                                            <small class="glyphicon glyphicon-bookmark">
                                            </small>
                                            1
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/u/hjzheng">
                                                <?php echo $row[ 'username'] ?>
                                            </a>
                                            <span class="split">
                                            </span>
                                            <a href="{:U('index/question/index',array('qid'=>$row['id']))}">
                                                <?php if($row[ 'answer_num']!='0' ){echo CT($row[ 'create_time']).
                                                '回答';}else{echo CT($row[ 'create_time']). '提问';} ?>
                                            </a>
                                        </li>
                                    </ul>
                                    <h2 class="title">
                                        <a href="{:U('index/question/index',array('qid'=>$row['id']))}">
                                            <?php echo $row[ 'title'] ; ?>
                                        </a>
                                    </h2>
                                    <ul class="taglist--inline ib">
                                        <?php foreach ($row[ 'categorys'] as $category) { ?>
                                            <li class="tagPopup">
                                                <a class="tag tag-sm" href="{:U('index/catetory/index',array('cid'=>$category['cid']))}"
                                                data-toggle="popover" data-original-title="angularjs" data-id="1040000000210853">
                                                    <?php echo $category[ 'cname'] ?>
                                                </a>
                                            </li>
                                            <?php } ?>
                                    </ul>
                                </div>
                            </section>
                            <?php } ?>
                    </div>
                    <div class="text-center LJYpage">
                        <?php echo $show ?>
                    </div>
                    <style type="text/css">
                            .LJYpage a,.LJYpage span{
                                display: inline-block;
                                padding:0px 10px;
                                height: 30px;
                                line-height: 30px;
                                border: 1px solid #006741;
                                margin: 0px 5px;
                            }
                            .LJYpage span.current{
                                background: #006741 url() 0 0 no-repeat;
                                color: #fff;
                            }
                        </style>
                </div>
                <!-- /.tab-content -->
            </div>
            <!-- /.main -->
            <div class="col-xs-12 col-md-3 side">
                <div class="side-ask alert alert-warning">
                    <p>
                        SegmentFault 是一个专注于解决编程问题，提高开发技能的社区。
                    </p>
                    <a href="https://segmentfault.com/user/oauth/google" class="mt10 btn btn-sn-google btn-block">
                        <span class="icon-sn-bg-google">
                        </span>
                        使用 Google 登录
                    </a>
                    <a href="https://segmentfault.com/user/oauth/weibo" class="mt10 btn btn-sn-weibo btn-block">
                        <span class="icon-sn-bg-weibo">
                        </span>
                        使用微博登录
                    </a>
                    <a href="https://segmentfault.com/user/oauth/weixin" class="mt10 btn btn-sn-weixin btn-block">
                        <span class="icon-sn-bg-weixin">
                        </span>
                        使用微信登录
                    </a>
                    <div class="mt10 side-system-notice">
                        <i class="fa fa-bullhorn pull-left">
                        </i>
                        <a class="side-system-notice--title" href="https://segmentfault.com/a/1190000006751300#ops">
                            技术周刊 Vol.3 - 前后端分离与前端工程化
                        </a>
                    </div>
                </div>
                <div class="widget-box">
                    <h2 class="h4 widget-box__title">
                        相关标签
                    </h2>
                    <ul class="taglist--inline multi">
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/mysql" data-toggle="popover"
                            data-id="1040000000089439" data-original-title="mysql">
                                mysql
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/javascript" data-toggle="popover"
                            data-id="1040000000089436" data-original-title="javascript">
                                javascript
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/laravel" data-toggle="popover"
                            data-id="1040000000196640" data-original-title="laravel">
                                laravel
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/java" data-toggle="popover"
                            data-id="1040000000089449" data-original-title="java">
                                java
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/thinkphp" data-toggle="popover"
                            data-id="1040000000090482" data-original-title="thinkphp">
                                thinkphp
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/html" data-toggle="popover"
                            data-id="1040000000089571" data-original-title="html">
                                html
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/linux" data-toggle="popover"
                            data-id="1040000000089392" data-original-title="linux">
                                linux
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/nginx" data-toggle="popover"
                            data-id="1040000000090145" data-original-title="nginx">
                                nginx
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/python" data-toggle="popover"
                            data-id="1040000000089534" data-original-title="python">
                                python
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/apache" data-toggle="popover"
                            data-id="1040000000089761" data-original-title="apache">
                                apache
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="widget-box widget-taguser">
                    <h2 class="h4 widget-box__title">
                        标签排行榜
                        <span class="taguser-catalog text-muted pull-right">
                            本月 ·
                            <a href="https://segmentfault.com/users">
                                全部
                            </a>
                        </span>
                    </h2>
                    <ol class="widget-top10">
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/3659016524-57abf60bc2ed5_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/yangxiangming" class="ellipsis">
                                yangxiangming
                            </a>
                            <span class="text-muted pull-right">
                                +41
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/user-32.png" class="avatar-24">
                            <a href="https://segmentfault.com/u/arcus" class="ellipsis">
                                arcus
                            </a>
                            <span class="text-muted pull-right">
                                +41
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/3155519825-57700fefeb9d6_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/changwei" class="ellipsis">
                                昌维001
                            </a>
                            <span class="text-muted pull-right">
                                +32
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/3971048296-572b35995e21c_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/lincenying" class="ellipsis">
                                林岑影
                            </a>
                            <span class="text-muted pull-right">
                                +30
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/2514288082-565dc03a7dda5_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/hongs" class="ellipsis">
                                黄弘
                            </a>
                            <span class="text-muted pull-right">
                                +20
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/2903171450-55402ca92f5e9_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/northernfighter" class="ellipsis">
                                北月武士
                            </a>
                            <span class="text-muted pull-right">
                                +18
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/552381930-55634a6216d4d_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/em0t" class="ellipsis">
                                em0t
                            </a>
                            <span class="text-muted pull-right">
                                +16
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/4226586811-5779f9b767c1c_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/jaxon" class="ellipsis">
                                会编码的熊
                            </a>
                            <span class="text-muted pull-right">
                                +15
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/2104533600-56cd905dc3113_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/tigerb" class="ellipsis">
                                TIGERB
                            </a>
                            <span class="text-muted pull-right">
                                +15
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/3550004488-5671bf4608304_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/chenwx" class="ellipsis">
                                chenwx
                            </a>
                            <span class="text-muted pull-right">
                                +15
                            </span>
                        </li>
                    </ol>
                </div>
                <div class="widget-box widget-taguser">
                    <h2 class="h4 widget-box__title">
                        标签名人榜
                    </h2>
                    <ol class="widget-top10">
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/3247715052-56fce46b2ae70_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/lizheming" class="ellipsis">
                                公子
                            </a>
                            <span class="text-muted pull-right">
                                +9632
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/3046988269-5644b84c17ed3_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/youmingdot" class="ellipsis">
                                有明
                            </a>
                            <span class="text-muted pull-right">
                                +8508
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/1721318907-5773e949d35a4_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/jellybool" class="ellipsis">
                                JellyBool
                            </a>
                            <span class="text-muted pull-right">
                                +7696
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/4271029182-55b7a3c57d25b_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/eechen" class="ellipsis">
                                eechen
                            </a>
                            <span class="text-muted pull-right">
                                +6371
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/1578424531-1030000000455562_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/mcfog" class="ellipsis">
                                mcfog
                            </a>
                            <span class="text-muted pull-right">
                                +6076
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/2709439599-1030000000321731_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/shamiao" class="ellipsis">
                                沙渺
                            </a>
                            <span class="text-muted pull-right">
                                +5487
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/289632912-56dcdd3095831_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/incnick" class="ellipsis">
                                incNick
                            </a>
                            <span class="text-muted pull-right">
                                +5398
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/3870447111-5673aedad6338_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/justjavac" class="ellipsis">
                                justjavac
                            </a>
                            <span class="text-muted pull-right">
                                +5322
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/1926483299-1030000000139155_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/johnlui" class="ellipsis">
                                JohnLui
                            </a>
                            <span class="text-muted pull-right">
                                +5013
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="__PUBLIC__/images/2618981758-1030000000091293_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/joyqi" class="ellipsis">
                                joyqi
                            </a>
                            <span class="text-muted pull-right">
                                +3983
                            </span>
                        </li>
                    </ol>
                </div>
            </div>
            <!-- /.side -->
        </div>
    </div>
</div>
<div class="container text-right mb20 hidden-xs">
    <a href="https://segmentfault.com/t/php/feeds?type=newest" class="feed-link">
        订阅本页 RSS
    </a>
</div>